
//
//  ProdDetailsUitls.m
//  JiaoX
//
//  Created by yinqy on 15/1/13.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "ProdDetailsUitls.h"

@implementation ProdDetailsUitls

+(UIButton *)getCellBtnWithImageName:(NSString *)imageName font:(UIFont*)font color:(UIColor *)color cellHeight:(CGFloat)cellHeight{
    UIButton *btn = [[UIButton alloc]init];
    [btn setFrame:CGRectMake(JXPublicInset, 0, JXScreenW-JXPublicInset-30, cellHeight)];
    [btn setUserInteractionEnabled:NO];
    [btn setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft];
    [btn setTitleEdgeInsets:UIEdgeInsetsMake(0, 5, 0, 0)];
    [btn setTitleColor:color forState:UIControlStateNormal];
    [btn.titleLabel setFont:font];
    [btn setImage:[UIImage imageNamed:imageName] forState:UIControlStateNormal];
    
    return btn;
}
@end
